/**
 * 
 */
package cx3k.GUI;

import java.awt.Color;
import javax.swing.*;
import javax.swing.border.BevelBorder;
import javax.swing.border.SoftBevelBorder;

/**
 * @author Chris
 *
 */
public class SchedulePane extends JTabbedPane {
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private Scheduler scheduler;
	private int[] scheduleIDs;
	
	public SchedulePane(Scheduler s) {
		this.setBackground(MainWindow.MAINCOLOR);
		this.setBorder(new SoftBevelBorder(BevelBorder.LOWERED));
		this.setForeground(Color.RED);
		this.scheduler = s;
	
		scheduleIDs = scheduler.getScheduleIDs();
		//this.loadSchedule(scheduler.getSchedule(scheduleIDs[0]));
	}
	
	private void loadSchedule(Schedule schedule) {
		AcademicYear years[] = (AcademicYear[]) schedule.getYears().toArray();
		for (int i = 0; i<years.length; i++) {
			this.addTab(years[i].getYearNumber(), new YearPane(years[i]));
		}
	}
	
	/**
	 * @param args
	 */
	public static void main(String[] args) {
		// TODO Auto-generated method stub

	}

}
